package com.guosheng.lambda;

import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

public class LambdaWhatThis {

    public void whatThis(){
        List<String> listone = Arrays.asList(new String[]{"aa","uu","ee","ff"});
        List<String> listtwo = listone.stream().map(
                str -> {
                    System.out.println(this.getClass().getName());
                    return str.toUpperCase();
                }
        ).collect(Collectors.toList());
        listtwo.forEach(System.out::println);
    }

    public static void main(String[] args){
        LambdaWhatThis lwt = new LambdaWhatThis();
        lwt.whatThis();
    }
}
